package com.powernode;

import com.powernode.lombok.bean.User;
import com.powernode.lombok.builder.Person;
import com.powernode.lombok.builder.Person1;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class Main {
    public static void main(String[] args) {
        User user = new User();
        user.setName("zhangsan");
        user.setAge(18);
        user.setAddress("zhangbeilu");
        System.out.println(user);
        User user1 = new User("李四", 18, "审美路");
        System.out.println(user1);
        Person.PersonBuilder builder = Person.builder();
        builder.setId(1);
        builder.setName("zhangsan");
        builder.setAge(18);
        builder.setAddress("zhangbeilu");
        builder.setEmail("zhangsan@qq.com");
        builder.setPhone("13412345678");
        Person person = builder.build();
        System.out.println(person);
        Person1 person1 = Person1.builder().name("zhangsan").address("<UNK>").build();
        System.out.println(person1);
        Person1 person2 = Person1.builder().name("李四").address("朝阳大街").addGfName("xiaohong").addGfName("lisa").build();
        System.out.println(person2);
        log.info(person2.toString());
    }
}